// 配置路由相关信息
import VueRouter from "vue-router";
import Vue from "vue";
// 1.通过Vue.use(插件)
Vue.use(VueRouter);
const routes = [
];

const org = VueRouter.prototype.push;

VueRouter.prototype.push = function push(loc) {
  return org.call(this, loc).catch((err) => err);
};

// 2.创建VueRouter对象
const router = new VueRouter({
  routes,
});

// 3.将router传入到vue实例中
export default router;
